Advent Of Code 2017 - Day 1 - Ruby Solution